package com.shao.onlinepdf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @author shaohuailin
 * @date 2021/09/06
 */
@Controller
@RequestMapping("/view")
public class ViewController {
    
    @GetMapping("/index")
    public String index(Model model) {
        int[] arr = new int[20];
        model.addAttribute("arr", arr);
        return "index";
    }
}
